Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Text): Add separate layout thread with dispatcher access #542

Merged
merged 1 commit into from
Aug 9, 2016

Conversation

rozele
Copy link
Collaborator

@rozele rozele commented Jul 21, 2016

Text measurement was a bit of a performance bottleneck due to context switching from the native module thread to the dispatcher thread.

Eventually, we may want to implement text measurement that does not invole cloning the RichTextBox (e.g., using DWrite APIs or Win2D), but this is progress for now.

We create the layout thread from a static secondary CoreApplicationView with a Window that is never activated.

@rozele
Copy link
Collaborator Author

rozele commented Jul 21, 2016

cc @rigdern @mattpodwysocki

Text measurement was a bit of a performance bottleneck due to context switching from the native module thread to the dispatcher thread.

Eventually, we may want to implement text measurement that does not invole cloning the RichTextBox (e.g., using DWrite APIs or Win2D), but this is progress for now.

We create the layout thread from a static secondary CoreApplicationView with a Window that is never activated.
@rozele rozele merged commit 5236ff5 into microsoft:master Aug 9, 2016
@rozele rozele deleted the issue106 branch August 9, 2016 17:36
rozele added a commit to rozele/react-native-windows that referenced this pull request Aug 30, 2016
rozele added a commit to rozele/react-native-windows that referenced this pull request Aug 30, 2016
rozele added a commit that referenced this pull request Aug 31, 2016
GantMan pushed a commit to infinitered/react-native-windows that referenced this pull request Sep 29, 2016
…ft#542)

Text measurement was a bit of a performance bottleneck due to context switching from the native module thread to the dispatcher thread.

Eventually, we may want to implement text measurement that does not invole cloning the RichTextBox (e.g., using DWrite APIs or Win2D), but this is progress for now.

We create the layout thread from a static secondary CoreApplicationView with a Window that is never activated.
GantMan pushed a commit to infinitered/react-native-windows that referenced this pull request Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant